#ifndef BEZIER_H
#define BEZIER_H
#include <vector>

typedef struct
  {
    double x, y;
  } POINT;

class Bezier
{
public:
    Bezier();

    POINT bezierPoint(double t, POINT p0, POINT p1, POINT p2, POINT p3);

    int getBezierPoints(POINT p0, POINT p1, POINT p2, POINT p3,int pointCount,std::vector<POINT> &pointsOut);
    double getBezier_length(POINT p0, POINT p1, POINT p2, POINT p3, int pointCount);

};

#endif // BEZIER_H
